package v1

import (
	"mime/multipart"
	"time"
)

type UploadFileRequest struct {
	File *multipart.FileHeader `form:"file"`
}

type UploadFileResponse struct {
	FileId   int64  `json:"fileId"`
	FilePath string `json:"filePath"`
	FileName string `json:"fileName"`
}

type UploadAvatarReq struct {
	UserId int64                 `form:"userId" binding:"required"`
	File   *multipart.FileHeader `form:"file"`
}

type DeleteFileRequest struct {
	FileId int64 `json:"fileId" binding:"required"`
}

type DeleteFileResponse struct {
	FileId int64 `json:"fileId"`
}

type GetFileInfoRequest struct {
	FileId int64 `uri:"fileId" binding:"required"`
}

type GetFileInfoResponse struct {
	FileId    int64     `json:"fileId"`
	FileName  string    `json:"fileName"`
	FilePath  string    `json:"filePath"`
	FileType  string    `json:"fileType"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}
